.ant-btn-primary {
  color: #fff !important;
}

.anticon {
  display: block;
}

.ant-modal .ant-modal-content {
  overflow: hidden !important;
}

.ant-btn {
  height: 48px !important;
  font-size: 16px !important;
  // padding: 13px 21px !important;
  border-radius: 8px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.input-number {
  input[type="number"]::-webkit-inner-spin-button,
  input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
  input[type="number"] {
    -moz-appearance: textfield;
  }
}
.ant-message-notice-content > div {
  display: flex;
  align-items: center;
}

.ant-alert {
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 8px;
  .anticon {
    margin-right: 8px;
  }
}

// 分页
.ant-pagination {
  display: flex;
  justify-content: center;
  margin: 40px 0;
  li {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border: 1px solid #ccd6de !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    background-color: #fff;
    &.ant-pagination-item {
      background-color: #fff;
    }
    a {
      padding: 0 !important;
      height: 100%;
      display: flex !important;
      align-items: center;
      justify-content: center;
      color: #5a6b85 !important;
    }

    &.ant-pagination-item-active {
      background-color: #3d88f2;
      border-color: transparent;
      a {
        color: #fff !important;
      }
      &:hover {
        a {
          color: #fff !important;
        }
      }
    }
    .ant-pagination-item-ellipsis {
      font-size: 8px;
    }
    &.ant-pagination-jump-next,
    &.ant-pagination-jump-prev {
      overflow: hidden;
    }
    .ant-pagination-item-link-icon {
      svg {
        color: #5a6b85;
        width: 14px;
        height: 14px;
      }
    }
    .anticon-right,
    .anticon-left {
      svg {
        color: #5a6b85;
        width: 14px;
        height: 14px;
      }
    }
    &.ant-pagination-prev,
    &.ant-pagination-next {
      button {
        border-radius: 6px !important;
      }
    }
  }
  .ant-pagination-total-text {
    width: auto !important;
    min-width: auto !important;
    border: none !important;
    background-color: transparent !important;
    color: #5a6b85;
    white-space: nowrap !important;
    @media screen and (min-width: 768px) {
      margin-inline-end: 16px;
      line-height: 30px;
    }
  }
  .ant-pagination-options {
    border: none !important;
    width: auto !important;
    background-color: transparent !important;
    margin-inline-start: 16px;
    .ant-pagination-options-size-changer {
      .ant-select-selector {
        height: 32px;
        padding: 0 11px;
        font-size: 14px;
        border-radius: 6px;
        .ant-select-selection-item {
          padding-inline-end: 18px;
          line-height: 30px;
        }
      }
      .ant-select-arrow {
        inset-inline-end: 11px;
        height: 12px;
        margin-top: -6px;
        font-size: 12px;
      }
    }
    .ant-pagination-options-quick-jumper {
      height: 32px;
      margin-inline-start: 8px;
      line-height: 32px;
      display: flex;
      white-space: nowrap;
      color: #5a6b85;
      input {
        width: 40px;
        min-width: 0;
        padding: 4px 11px;
        font-size: 14px;
        border-radius: 6px;
        height: 32px;
        margin-inline-start: 8px;
        margin-inline-end: 8px;
        background-color: #fff !important;
      }
    }
  }
}
@media screen and (max-width: 768px) {
  .ant-pagination {
    margin: 164px 0;
    li {
      width: 164px !important;
      height: 164px !important;
      min-width: 164px !important;
      border: 1px solid #ccd6de !important;
      border-radius: 31px !important;
      font-size: 72px !important;
    }
    .ant-pagination-item-ellipsis {
      font-size: 48px !important;
    }
    .anticon-right,
    .anticon-left,
    .ant-pagination-item-link-icon {
      svg {
        width: 82px !important;
        height: 82px !important;
      }
    }
  }
}

.ant-modal {
  .ant-modal-content {
    padding: 24px;
    .ant-modal-close {
      border-radius: 0;
      width: 22px;
      height: 22px;
      top: 24px;
      right: 24px;
      svg {
        width: 22px;
        height: 22px;
      }
    }
  }
  .ant-modal-header {
    .ant-modal-title {
      font-size: 18px;
      color: #172026;
    }
  }
  // ant-input 输入框
  .ant-input-affix-wrapper,
  .ant-picker,
  .ant-input-number,
  .ant-select-selector {
    height: 40px !important;
    padding: 10px 8px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    color: #36434d;
    .ant-input-clear-icon {
      svg {
        width: 16px;
        height: 16px;
      }
    }
  }
  .ant-picker {
    width: 100%;
  }
  .ant-select {
    .ant-select-selection-search-input {
      height: 100% !important;
    }
    .ant-select-selection-item {
      line-height: 20px;
      padding-inline-end: 18px;
    }
    .ant-select-arrow {
      height: 12px;
      margin-top: -6px;
      font-size: 12px;
      inset-inline-end: 11px;
    }
    .ant-select-selection-search {
      inset-inline-start: 8px !important;
      inset-inline-end: 8px !important;
    }
  }
  .ant-input-number {
    overflow: hidden;
    line-height: 10px;
    width: 100%;
    .ant-input-number-input {
      padding: 0;
      height: auto;
    }
    .ant-input-number-handler-wrap {
      width: 22px;
      svg {
        width: 12px;
        height: 12px;
      }
    }
  }
  textarea.ant-input {
    border-radius: 10px;
    padding: 10px 8px;
  }
  .ant-form-item {
    margin-bottom: 24px;
    .ant-form-show-help,
    input,
    .ant-input {
      font-size: 14px !important;
    }
  }
  .ant-form-item-label {
    display: flex !important;
    & > label {
      height: 32px !important;
      font-size: 14px;
      color: #172026;
    }
  }
  .ant-form-item-control-input-content {
    display: flex;
  }
  .ant-form-item-control-input {
    align-items: flex-start;
    min-height: auto;
  }
  .ant-input-affix-wrapper-textarea-with-clear-btn {
    height: auto !important;
  }
}
// ant-drawer 弹窗
.fillinfo-modal {
  // ant-checkbox 复选框
  .ant-checkbox-wrapper {
    font-size: 16px;
    .ant-checkbox-inner {
      width: 16px;
      height: 16px;
    }
    .ant-checkbox-checked:after {
      border-width: 2px;
    }
    .ant-checkbox-inner:after {
      width: 5.8px;
      height: 9.14px;
    }
    .ant-checkbox + span {
      padding: 0 8px;
    }
  }

  // ant-form 表单
  .ant-form {
    .ant-form-item-label {
      label {
        font-size: 14px;
        color: #36434d;
      }
    }
  }
  .ant-select-selection-search {
    inset-inline-start: 10px !important;
    inset-inline-end: 10px !important;
  }
  .ant-select-selection-search-input {
    height: 40px !important;
  }
  .ant-picker {
    display: flex !important;
    align-items: center;
    width: 100%;
  }
  .ant-picker-suffix {
    svg {
      width: 16px;
      height: 16px;
    }
  }
  input,
  .ant-select-selection-item {
    font-size: 14px !important;
    color: #36434d;
  }
  .ant-select-selection-item {
    line-height: 18px !important;
    padding-right: 20px !important;
  }
}

.formModal {
  width: 500px !important;
  &.no-padding {
    .ant-modal-body {
      padding-top: 0 !important;
    }
  }
  &.updateResume-dialog {
    width: 520px !important;
  }
  .ant-modal-body,
  .ant-modal-header {
    padding: 0;
    border-bottom: 0px solid transparent;
  }
  .ant-modal-content {
    padding-bottom: 0;
    border-radius: 16px;
    overflow: hidden;
  }
  .ant-modal-body {
    padding-top: 24px;
  }
  .ant-form-item-label {
    width: 110px;
    padding: 0 0 8px;
    & > label {
      width: 85px;
      position: relative;
      top: 3px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }
  .footer-btns {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 24px 0;
    .ant-btn {
      border-radius: 10px !important;
      height: 40px !important;
      font-size: 14px !important;
      padding: 10px 30px !important;
    }
  }
  .ant-picker-input {
    flex-direction: row-reverse;
    .ant-picker-suffix {
      margin-left: 0;
      margin-right: 4px;
    }
  }
  .get-code-item {
    width: 100%;
    display: flex;
    gap: 8px;
    .getCode {
      border-radius: 10px !important;
      height: 40px !important;
      font-size: 14px !important;
      padding: 10px 12px !important;
      border: 1px solid #3d88f2 !important;
      color: #3d88f2 !important;
      &.getCoding {
        border-color: #cbcbcb !important;
        color: #cbcbcb !important;
      }
    }
  }

  // editor

  &.editor {
    width: 60vw !important;
    .ant-modal-body {
      padding-top: 0 !important;
    }
    .ant-form {
      display: grid;
      grid-template-columns: 1fr 1fr;
      column-gap: 24px;
      &.ant-form-vertical {
        .ant-form-item-label {
          padding: 5px;
          width: 100%;
          & > label {
            top: 0;
            width: inherit !important;
            transform: translateY(0);
          }
        }
      }
      .ant-form-item.span-2 {
        grid-column: 1 / span 2;
      }
      .ant-form-item:last-child {
        grid-column: 1 / span 2;
      }
    }
  }
}

.ant-modal-confirm {
  border-radius: 16px;
  width: 360px !important;
  .anticon.anticon-exclamation-circle {
    display: none;
  }
  .ant-modal-confirm-body {
    flex-direction: column;
    align-items: flex-start;
  }
  .ant-modal-confirm-content {
    margin-left: 0;
    margin-inline-start: 0 !important;
    margin-block-start: 8px !important;
    max-width: 100% !important;
  }
  .ant-modal-confirm-btns {
    margin-top: 12px !important;
    display: flex;
    justify-content: flex-end;
    .ant-btn {
      height: 40px !important;
      font-size: 14px !important;
      padding: 10px 16px !important;
      &:last-child {
        margin-left: 12px !important;
      }
    }
  }

  .ant-modal-confirm-title {
    font-size: 18px !important;
    color: #172026 !important;
  }
  .ant-modal-confirm-content {
    font-weight: 400 !important;
    font-size: 14px !important;
    color: #36434d !important;
  }
}

@media screen and (max-width: 768px) {
  .ant-btn {
    height: 246px !important;
    font-size: 82px !important;
    border-radius: 61px !important;
    padding: 67px 261px !important;
  }
  .ant-modal-confirm {
    width: 1715px !important;
    border-radius: 82px;
    .ant-modal-confirm-title {
      font-size: 92px !important;
    }
    .ant-modal-content {
      padding: 123px !important;
    }
    .ant-modal-confirm-content {
      font-size: 72px !important;
    }
    .ant-modal-confirm-btns {
      margin-top: 123px !important;
      .ant-btn {
        flex: 1;
        height: 205px !important;
        font-size: 72px !important;
        &:last-child {
          margin-inline-start: 61px !important;
        }
      }
    }
  }
}

// reset
.ant-input-affix-wrapper,
.ant-picker,
.ant-input-number,
input,
.ant-select-selector {
  background-color: transparent !important;
}

.ant-modal {
  .ant-form-item .ant-form-item-label {
    white-space: normal !important;
    overflow: visible;
    & > label {
      overflow: visible;
      flex: 1;
      height: auto !important;
      text-align: right !important;
      align-items: flex-start !important;
      @media screen and (min-width: 768px) {
        transform: translateY(8px);
        width: 115px !important;
        white-space: normal !important;
        word-break: break-all;
        &::before {
          transform: translateY(4px);
          font-size: 14px !important;
          margin-inline-end: 8px !important;
        }
        &::after {
          margin-inline-start: 2px;
          margin-inline-end: 8px;
        }
      }
    }
    & + .ant-form-item-control {
      justify-content: center;
    }
  }
}

// 分页 pageSize 下拉框
.ant-select-dropdown.pager {
  padding: 4px;
  font-size: 14px;
  border-radius: 8px;
  box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08),
    0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
  .rc-virtual-list-holder {
    max-height: 256px !important;
  }
  .ant-select-item {
    font-size: 14px;
    min-height: 32px;
    padding: 5px 12px;
    border-radius: 4px;
  }
}

.ant-input {
  padding: 4px 11px;
}
.ant-picker {
  padding: 4px 11px 4px;
}
.ant-input,
.ant-picker {
  border-radius: 6px;
}

@media screen and (max-width: 768px) {
  .ant-picker-dropdown {
    transform: scale(0.7);
  }
  .ant-picker {
    .ant-picker-suffix {
      svg {
        width: 72px;
        height: 72px;
      }
    }
  }
  .ant-input,
  .ant-picker {
    padding: 51px 61px;
    border-radius: 20px;
  }

  .user-agreement-modal {
    width: 100vw !important;
    max-width: 100vw;
    padding-bottom: 0;
    top: 0;
    .ant-modal-content {
      border-radius: 0;
      padding: 82px;
      height: 100vh;
      .raw-html {
        height: 82vh;
      }
    }
    .ant-modal-header {
      .ant-modal-title {
        font-size: 82px;
      }
    }
  }
}
